package com.wonders.qxmanager.service.impl;

import java.math.BigDecimal;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wonders.qxmanager.base.Parameter;
import com.wonders.qxmanager.base.WidgetPage;
import com.wonders.qxmanager.dao.TeamDao;
import com.wonders.qxmanager.model.Team;
import com.wonders.qxmanager.service.TeamService;
import com.wonders.qxmanager.utils.PageArrayList;

/**
 * liubiao
 */
@Service
public class TeamServiceImpl implements TeamService {
	
	@Resource
	private TeamDao teamDao;

	@Override
	public void addTeam(Team team) {
		this.teamDao.save(team);
	}

	@Override
	public void updateTeam(String qlString, Parameter parameter) {
		this.teamDao.update(qlString,parameter);

	}

	@Override
	public void deleteTeam(int id) {
		this.teamDao.deleteTeam(id);

	}

	@Override
	public PageArrayList<Team> getListByPage(Team team, WidgetPage page) {
		return teamDao.getListByPage(team, page);
	}

	@Override
	public List<Team> getAll() {
		return this.teamDao.getAll();
	}

	@Override
	public Team getTeamById(BigDecimal id) {
		return null;
	}

}
